/*
 * $Id: BaseService.java 42 2013-04-17 15:33:59Z gabakyan $
 * $Author: gabakyan $
 * $Revision: 42 $
 * $Date: 2013-04-17 15:33:59 +0000 (Wed, 17 Apr 2013) $
 *
 * Copyright (c) 2013 Supply Chain Intelligence (SCI), Inc.
 * http://www.scintelligence.com/, Email: info@scintelligence.com
 * All rights reserved.
 *
 * This file is part of Logistics Map.
 *
 * Logistics Map is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * Logistics Map is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Logistics Map.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.sci.logisticsmap.service;

import com.sci.logisticsmap.support.converter.ConversionUtilities;
import com.sci.logisticsmap.support.MessageSourceAccessHelper;
import com.sci.logisticsmap.support.translator.TranslationUtilities;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.PostConstruct;

/**
 * The Service base class for working with model.
 *
 * @author gabakyan@gmail.com (Last modified by $Author: gabakyan $)
 * @version $Revision: 42 $
 */
public abstract class BaseService {
    /**
     * The logger.
     */
    protected Logger logger;

    /**
     * The message source access helper.
     */
    @Autowired
    protected MessageSourceAccessHelper messageSourceAccessHelper;

    /**
     * The conversion utilities.
     */
    @Autowired
    protected ConversionUtilities conversionUtilities;
    /**
     * The translation utilities.
     */
    @Autowired
    protected TranslationUtilities translationUtilities;

    /**
     * The default constructor.
     * Initializes a Service base class.
     */
    public BaseService() {
        logger = LoggerFactory.getLogger(getClass());
    }

    /**
     * The post construct initialization method.
     */
    @PostConstruct
    public void init() {
    }
}
